** set panel data
xtset countrynumber year

** generate new variables 
gen reg=real(regulatory)
gen inv=real(investment)
gen govt=real(govteff)
gen percoast=real(perpopcoast)
gen lmal=log(malpop)
gen lngdp=log(gdp)
gen lfor=log(forestreal)
gen sqcement=sqrt(cement)
gen lnterrha=log(terrha)
gen lnirr=log(irr)
gen lnpop=log(pop)
gen sqhealth=sqrt(health)
gen agr=log(agarea)
gen mallab=lmal*labor
gen laginv=L.inv
gen malinv= lmal*laginv


save cleaning.dta, replace
